add_executable(
        starter sources/main.cpp
)
cmake_minimum_required(VERSION 3.20)
project(embedded-course)
# 设置c++版本为17
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
# 启用所有警告
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -pedantic")
# 调试信息
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -g -O0")
# 发布配置
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3")
add_executable(embedded-course sources/main.cpp
        sources/algorithm/a_sort.h
        sources/structures/list.h
        sources/multiple.cpp
        sources/structures/array_list.hpp
        sources/math/h/big_number.hpp)